package com.jwt.service.impl;

import com.jwt.model.UserModel;
import com.jwt.service.LoginService;
import com.jwt.utils.JwtUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class LoginServiceImpl implements LoginService {


    @Override
    public String login(UserModel userModel) {
        String token = JwtUtil.getToken(userModel);
        log.info("获取token: {}", token);
        return token;
    }
}
